
const promiseObj = new Promise((resolve, reject) => {
  setTimeout(() => {
    resolve('成功！')
  }, 2000)
  reject(new Error('失败'))
})

promiseObj.then((res) => {
  console.log(res)
}).catch((err) => {
  console.log('err', err)
})

import { cloneDeep } from 'lodash'

const a  = { a: { b: { c: 12345 }}}

console.log(cloneDeep(a))